|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.helpers.collection.MapUtil
public abstract class MapUtil
Utility to create Maps.
| Constructor Summary | |
|---|---|
MapUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
genericMap(Object... objects)
A short-hand method for creating a Map of key/value pairs. |
|
static Map<String,Object> |
map(Object... objects)
A short-hand method for creating a Map of key/value pairs where
keys are Strings and values are Objects. |
|
static Map<String,String> |
stringMap(String... strings)
A short-hand method for creating a Map of key/value pairs where
both keys and values are Strings. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapUtil()
| Method Detail |
|---|
public static <K,V> Map<K,V> genericMap(Object... objects)
Map of key/value pairs.
objects - alternating key and value.
objects.public static Map<String,String> stringMap(String... strings)
Map of key/value pairs where
both keys and values are Strings.
string - alternating key and value.
strings.public static Map<String,Object> map(Object... objects)
Map of key/value pairs where
keys are Strings and values are Objects.
objects - alternating key and value.
objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||